import java.util.Scanner;

public class whiletest {
    /*需求:
    键盘输入数字,判断是否为回文数
     */
    public static void main(String[] args) {
        System.out.println("请输入数字:");
        Scanner sc = new Scanner(System.in);

        int num=0;
        int a = sc.nextInt();
        int c = a;
        while(a!=0){
            int b = a%10;
            a = a/10;
            num=10*num+b;
        }
        boolean flag = num==c;
        if(flag){
            System.out.println("是回文数");
        }else {
            System.out.println("不是回文数");
        }
    }
}
